package com.o2o.demo.service;

import java.util.List;


import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService(endpointInterface="com.o2o.demo.service.impl.UserService2",
			targetNamespace="http://cxf.apache.org",serviceName="UserServiceImpl2")
public interface UserService2 {
	//get all
	//@WebMethod(exclude=true) 此属性控制是否需将服务发布
	@WebMethod(operationName="getAll")
	List<Users>  getAll();
	//get all
	@WebMethod(operationName="toJson")
	String  getAllToJson();
	//get User by type
	@WebMethod(operationName="byType")
	String getUserByType(int type);
	@WebMethod(operationName="validate")
	String getUserByName(@WebParam(name="userName")String name,
						 @WebParam(name="pass")String password);
}
